//
//  UIView+ELLayer.h
//  jobClient
//
//  Created by 一览OS on 2020/7/15.
//  Copyright © 2020 YL1001. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, LeShadowPathType)
{
    LeShadowPathTop,//上
    LeShadowPathBottom,//下
    LeShadowPathLeft,//左
    LeShadowPathRight,//右
    LeShadowPathCommon,
    LeShadowPathAround
};


@interface UIView (ELLayer)

/**  设置圆角  */
- (void)rounded:(CGFloat)cornerRadius;

/**  设置圆角和边框  */
- (void)rounded:(CGFloat)cornerRadius width:(CGFloat)borderWidth color:(UIColor * _Nullable)borderColor;

/**  设置边框  */
- (void)border:(CGFloat)borderWidth color:(UIColor *)borderColor;

/**   给哪几个角设置圆角  */
-(void)round:(CGFloat)cornerRadius RectCorners:(UIRectCorner)rectCorner;

/**  设置阴影  */
-(void)setELShadow:(UIColor *)shadowColor opacity:(CGFloat)opacity radius:(CGFloat)radius offset:(CGSize)offset;

/**  设置渐变色  */
-(void)gradientWithStartPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint Colors:(NSArray *)Colors;

/**  设置渐变色  */
-(void)gradientWithStartPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint Colors:(NSArray *)Colors locations:(NSArray *)locations;

/**  添加单边阴影  */
- (void)viewShadowPathWithColor:(UIColor *)shadowColor shadowOpacity:(CGFloat)shadowOpacity shadowRadius:(CGFloat)shadowRadius shadowPathType:(LeShadowPathType)shadowPathType shadowPathWidth:(CGFloat)shadowPathWidth;

@end

NS_ASSUME_NONNULL_END
